package pdamh.model.unidade.trecho.calc;

import junit.framework.TestCase;
import pdamh.model.unidade.carga.calc.MediumHFCalculator;

public class MediumHFCalculatorTest extends TestCase {
	
	public void testGetHeightFault() {
		MediumHFCalculator calculator = new MediumHFCalculator(120, 49.92, 140, 160);
		assertEquals(2.00, calculator.getHeightFault(), 0.01);

		calculator = new MediumHFCalculator(120, 49.92, 140, 240);
		assertEquals(3.00, calculator.getHeightFault(), 0.01);
		calculator = new MediumHFCalculator(120, 49.92, 140, 360);
		assertEquals(4.48, calculator.getHeightFault(), 0.01);
	}

}
